package com.a214.yxz.yuejian013.Service;
import com.a214.yxz.yuejian013.JavaBean.Activitys;
import com.a214.yxz.yuejian013.JavaBean.MySelfBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**活动
 * Created by hp-pc on 2017/10/12.
 */

public interface ActivitysService {

       @GET("lists/mod/activity")
    Call<List<Activitys>> getActivitys(
                    @Query("SessionID") String sessionId,
                    @Query("page") int page
            );
    @GET("get/mod/user")
    Call<MySelfBean> getMySelf(
            //   @Query("SessionID") String sessionId,
            @Query("id") String  id
    );
    @GET("get/mod/activity")
    Call<Activitys> getActivityById(
            @Query("id") String id
    );
    Call<Integer> signActivity(
            @Path("mod") String mod,
            @Path("participantname") String participantname,//郑俊生
            @Path("act_id") String act_id,//活动id
            @Path("participanttel") String participanttel ,//电话号
            @Path("adultnum") String adultnum,
            @Path("studentnum")String studentnum,
            @Path("paytype") String paytype,
            @Path("pay") String pay,
            @Path("paynotice") String paynotice,
            @Path("insurance") String insurance,
            @Path("userid") int userid,
            @Path("SessionID") String SessionID
    );
}
